import 'dart:convert';
/// id : "1956959a-f5f6-4c35-9212-9eb98e5dd6e4"
/// title : "测试采集4"
/// cityViewStr : "内蒙古自治区-通辽市-开鲁县"
/// cityId : ""
/// reportType : "政策措施"
/// collectUri : "www.beijing.gov.cn"
/// collectSum : 0
/// isValid : "1"
/// tenantId : ""
/// createBy : ""
/// createTime : "2023-03-09 15:58:20"
/// updateBy : ""
/// updateTime : 1678348700000

Collect collectFromJson(String str) => Collect.fromJson(json.decode(str));
String collectToJson(Collect data) => json.encode(data.toJson());
class Collect {
  Collect({
      this.id, 
      this.title, 
      this.cityViewStr, 
      this.cityId, 
      this.reportType, 
      this.collectUri, 
      this.collectSum, 
      this.isValid, 
      this.tenantId, 
      this.createBy, 
      this.createTime, 
      this.updateBy, 
      this.updateTime,});

  Collect.fromJson(dynamic json) {
    id = json['id'];
    title = json['title'];
    cityViewStr = json['cityViewStr'];
    cityId = json['cityId'];
    reportType = json['reportType'];
    collectUri = json['collectUri'];
    collectSum = json['collectSum'];
    isValid = json['isValid'];
    tenantId = json['tenantId'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
  }
  String? id;
  String? title;
  String? cityViewStr;
  String? cityId;
  String? reportType;
  String? collectUri;
  num? collectSum;
  String? isValid;
  String? tenantId;
  String? createBy;
  String? createTime;
  String? updateBy;
  num? updateTime;
Collect copyWith({  String? id,
  String? title,
  String? cityViewStr,
  String? cityId,
  String? reportType,
  String? collectUri,
  num? collectSum,
  String? isValid,
  String? tenantId,
  String? createBy,
  String? createTime,
  String? updateBy,
  num? updateTime,
}) => Collect(  id: id ?? this.id,
  title: title ?? this.title,
  cityViewStr: cityViewStr ?? this.cityViewStr,
  cityId: cityId ?? this.cityId,
  reportType: reportType ?? this.reportType,
  collectUri: collectUri ?? this.collectUri,
  collectSum: collectSum ?? this.collectSum,
  isValid: isValid ?? this.isValid,
  tenantId: tenantId ?? this.tenantId,
  createBy: createBy ?? this.createBy,
  createTime: createTime ?? this.createTime,
  updateBy: updateBy ?? this.updateBy,
  updateTime: updateTime ?? this.updateTime,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['title'] = title;
    map['cityViewStr'] = cityViewStr;
    map['cityId'] = cityId;
    map['reportType'] = reportType;
    map['collectUri'] = collectUri;
    map['collectSum'] = collectSum;
    map['isValid'] = isValid;
    map['tenantId'] = tenantId;
    map['createBy'] = createBy;
    map['createTime'] = createTime;
    map['updateBy'] = updateBy;
    map['updateTime'] = updateTime;
    return map;
  }

}